<style type="text/css">
.letter
{
	margin:0px;
	padding:0px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	font-weight:normal;
	color:#000000;
	text-decoration:none;
	
}
.letter a{ float:left; margin-right:10px; color:#666; font-size:14px; text-decoration:none; line-height:34px;}
</style>
<?php $website_url = Configure::read('Website.url'); ?>
  <?php 
	if(isset($category_slug) and ($category_slug))
	{
		$category_slug = $category_slug;
	}else
	{
		$category_slug = "";
	}
?>
<div id="main">
<div class="paging_gray">
      <p>views <strong style="margin-right:20px;">Top Brands</strong></p>
      <?php $ranges = range('A','Z');  
	  ?> <span class="f_left letter"> 
      <?php
	  echo $html->link('#', 
							array(
									'controller'=>'brands', 
									'action'=>'brand',
									$cat_slug,
									)
								);
	  ?>
      </span>
      <?php
	  foreach($ranges as $range){?>
          <span class="f_left letter"> 
          
		  <?php 
							echo $html->link(''.$range.'', 
							array(
									'controller'=>'brands', 
									'action'=>'brand',
									$cat_slug,
									'letter'=>''.$range.'',
									)
								);
						?>  </span> 
                        <?php
	  }
	  ?>
      </div>
        <div class="all_cat_main">
		  <?php
            if(isset($Brands) and ($Brands))
            {		
            ?>	
            <ul>
    
                        <?php
                        $i=1;
                        foreach($Brands as $cat)
                        {
            ?>
            
        
                            <li>
                            <?php 
                                echo $html->link($cat['Brand']['name'], 
                                array('controller'=>'products', 
                                'action'=>'index','category_slug'=>$category_slug,
                                'brand_slug'=>$cat['Brand']['slug']));
                            ?>
                         </li>
               
     <?php				
                    if($i%3 == 0)
                        {
                            echo "<div class='clear'></div>";
                        }
                        $i++;
                    }
						
                        ?>
          </ul>
			<?php
			}
			else
			{
				echo "No Brands Related Yet!";
			}
			?>
     </div>        
    </div>
